.loading-toast-class {
  background: transparent;
  color: var(--van-primary-color);
  .van-loading {
    color: var(--van-primary-color);
  }
}

// 主按钮样式重置
.van-button {
  height: 92px;
  border-radius: 16px;
  .van-button__content {
    font-size: 36px;
    font-weight: 600;
  }
}
.van-button--primary {
  background: var(--button-bg-color);
}
.van-button--default {
  border-color: var(--van-primary-color);
  .van-button__content {
    color: var(--van-primary-color);
  }
}
.van-button--danger {
  background: transparent;
  border-color:  #E63C3C;
  .van-button__content {
    color: #E63C3C;
  }
}

.van-dialog__cancel {
  .van-button__content {
    color: var(--time-color);
  }
}

// 表单样式重置
.van-form {
  .van-cell {
    padding: 14px 32px;
    &:after {
      display: block;
    }
    .van-cell__right-icon {
      color: var(--time-color);
    }
    .van-field__label {
      width: 420px;
    }
    .van-cell__title {
      &:before {
        margin-left: -8px;
      }
      label {
        font-size: 28px;
        color: var(--title-color);
        height: 40px;
        line-height: 40px;
      }
    }
    .van-field__control--custom {
      font-size: 28px;
    }
    .van-field__button {
      font-size: 32px;
      align-self: flex-start;
    }
    .van-cell__value {
      .van-field__body {
        align-items: flex-start;
        input, textarea {
          line-height: 48px;
          font-size: 28px;
          color: var(--title-color);
          input::placeholder {
            color: #BEBEBE;
          }
        }
        input {
          border: 2px solid #DBDBDB;
          border-radius: 4px;
          text-indent: 12px;
          height: 58px;
          line-height: 58px;
        }
      }
    }
  }
  .van-radio-group {
    .van-radio {
      margin-bottom: 12px;
      align-items: center;
      .van-icon {
        height: 32px;
        width: 32px;
        line-height: 32px;
        font-size: 28px;
      }
      &:nth-last-of-type(1) {
        margin-right: 0;
      }
    }
  }
  .field-no-border {
    padding-bottom: 0;
    &:after {
      display: none;
    }
  }
  .field-column {
    flex-direction: column;
    .van-cell__title, .van-field__label {
      width: 100%;
      //display: flex;
    }
    .van-field__control--custom {
      margin-top: 10px;
      .van-checkbox-group {
        align-items: center;
        .van-icon {
          height: 32px;
          width: 32px;
          line-height: 32px;
          font-size: 28px;
        }
      }
    }
    .label {
      height: 40px;
      line-height: 40px;
      font-size: 28px;
      color: var(--title-color);
      span {
        font-size: 24px;
        color: #BEBEBE;
        margin-left: 48px;
      }
    }
  }
  .field-textarea {
    position: relative;
    .van-cell__title, .van-field__label {
      margin-bottom: 24px;
    }
    .van-cell__value {
      padding: 6px;
      background: #F6F7F8;
      .van-field__body textarea {
        font-size: 28px;
        color: var(--title-color);
        textarea::placeholder {
          color: #BEBEBE;
        }
      }
    }
  }
}

// 重置上传样式
.van-uploader {
  width: 100%;
  .van-uploader__wrapper {
    width: 100%;
    display: flex;
  }
  .van-uploader__preview {
    width: calc(calc(100% - 120px) / 5);
    aspect-ratio: 1;
    border-radius: 8px;
    margin: 0 24px 24px 0;
    &:nth-of-type(5n) {
      margin-right: 0;
    }
    .van-uploader__preview-image {
      width: 100%;
      height: 100%;
      border-radius: 16px;
    }
    //.van-uploader__preview-delete {
    //  position: absolute;
    //  width: 32px;
    //  height: 32px;
    //  top: -8px;
    //  right: -8px;
    //  img {
    //    width: 100%;
    //    height: 100%;
    //  }
    //}
  }
  .van-uploader__input-wrapper {
    width: calc(calc(100% - 120px) / 5);
    .van-uploader__input, img {
      width: 100%;
      height: auto !important;
      aspect-ratio: 1;
    }
  }
}

// tab样式重置
.van-tabs--line .van-tabs__wrap {
  .van-tab {
    color: var(--time-color);
    font-size: 32px;
  }
  .van-tab--active {
    color: #141414;
    font-weight: 500;
  }
  .van-tabs__nav--line {
    border-radius: 4px;
  }
}

// dialog样式重置
.van-dialog {
  .van-dialog__message {
    font-size: 32px;
    color: var(--content-color)
  }
  .van-dialog__footer {
    .van-button__text {
      font-weight: normal;
    }
    .van-dialog__confirm {
      .van-button__text {
        color: var(--van-primary-color);
      }
    }
  }
}

.my-swipe {
  position: relative;
  z-index: 20;
  width: calc(100% - 64px);
  box-sizing: border-box;
  .van-swipe__indicator {
    width: 8px;
    height: 8px;
  }
  .van-swipe__indicator--active {
    background: #fff;
    width: 16px;
    border-radius: 4px;
  }
  img {
    width: 100%;
    height: 100%;
  }
}

.custom-indicator-swipe {
  position: relative;
  z-index: 20;
  width: 100%;
  aspect-ratio: 16 / 9;
  img {
    width: 100%;
    height: 100%;
  }
  .custom-indicator {
    position: absolute;
    width: 76px;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    right: 32px;
    bottom: 32px;
    background: rgba(0, 0, 0, .5);
  }
}


.van-calendar {
  .van-calendar__month-mark {
    white-space: nowrap;
  }
  .van-button__text {
    color: #fff;
  }
}
